package com.ggqq.factory.builder;

//指挥：核心。负责指挥构建一个工程，工程如何构建，由它决定
public class Director {
    //指挥工人按照顺序建房子
    public Product build( Builder builder){
        builder.builderB();
        builder.builderA();

        builder.builderC();
        builder.builderD();
        return  builder.getProduct();
    }
}
